from django.contrib import admin
from django.urls import path, include
from rest_framework import routers

from apps.user import views as user_view
from apps.project import views as project_view
from apps.performance import views as performance_view
from apps.interface import views as interface_view
from apps.function import views as function_view
from apps.case import views as case_view

router = routers.DefaultRouter()
router.register(r'users', user_view.UserViewSet)
router.register(r'project', project_view.ProjectViewSet)
router.register(r'project_user', project_view.ProjectUserViewSet)
router.register(r'performance', performance_view.PerformanceViewSet)
router.register(r'interface', interface_view.InterfaceViewSet)
router.register(r'function', function_view.FunctionViewSet)
router.register(r'function_detail', function_view.FunctionDetailViewSet)
router.register(r'case', case_view.CaseViewSet)

urlpatterns = [
    path('', include(router.urls)),
    path('admin/', admin.site.urls),
]
